<?php

namespace Boosen\Company\app\Models;

use Illuminate\Database\Eloquent\Model;

class Company extends Model
{
    /**
     * 与模型关联的数据表。
     *
     * @var string
     */
    protected $table = 'companies';

    protected $fillable = ['cn_url_id', 'name', 'logo_pic', 'description', 'des_pic', 'contact_name', 'phone', 'tel_phone', 'qq', 'province_id', 'city_id', 'area_id', 'district'];
    public $timestamps = true;


    public function companyUrl()
    {
    	return $this->belongsTo('Boosen\Company\app\Models\CNCompanyUrl', 'cn_url_id');
    }
}